#include<iostream>
#include<fstream>
#include<stdlib.h>
#include<time.h>
using namespace std;

const int Max = 100;
const int Min = 0 - 50;
int main(int argc,char * argv[]){
	if(argc <2 ){
		cout<<"usage : ./sumOfSubArray num "<<endl;
		return -1;
	}
	int num = atoi(argv[1]);
	ofstream ofs;
	ofs.open("sumOfSubArray.dat");
	srandom(time(NULL));
	int value;
	for(int i = 0;i<num;i++){
		double temp = random()*1.0/RAND_MAX;
		value = Min +(int)( (Max - Min) * temp);
		ofs<<value<<" ";
	}
	ofs.close();

	return 0;
}
